<template>
  <el-menu
    default-active="2"
    class="el-menu-vertical-demo"
    router
  >
    <el-menu-item v-for="(item, idx) in menuList" :key="idx" :index="item.path" >
      <i class="el-icon-setting"></i>
      <span slot="title">{{item.meta.title}}</span>
    </el-menu-item>
  </el-menu>
</template>

<script>
import { menuList } from '../router'
export default {
    data() {
        return {
            menuList
        }
    },
    methods: {
    },
}
</script>

